package com.geccocrawler.gecco.demo.heilongjiang;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.annotation.RequestParameter;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: weixiaohu
 * Date: 2019/6/3
 * Time: 14:16
 */
@Getter
@Setter
@Gecco(
        matchUrl = "http://www.hl.lss.gov.cn/hljsyb/listView.jsp?type={type}&id={id}",
        pipelines = {"regionProcessPipeline","consolePipeline"})
public class Region implements HtmlBean {
    @RequestParameter
    private String type;
    @RequestParameter
    private String id;
    @Request
    private HttpRequest request;
    @HtmlField(cssPath = "#sel>option")
    private List<Option> options;
}
